//
//  MyCrashTest.m
//  MySDK
//
//  Created by shuai on 2025/11/1.
//

#import "MYCrashTest.h"
@interface MqwSDKCaaa()

@end

@implementation MqwSDKCaaa
- (void)testArrayOutOfBoundsCrash {
    NSArray *array = @[@1, @2, @3];
    // 访问超出数组长度的索引
    NSLog(@"---%@", array[3]); // 崩溃：index 3 beyond bounds for empty array
}
- (void)testUnimplementedMethodCrash {
    NSObject *obj = [[NSObject alloc] init];
    // 调用NSObject未实现的方法
    [obj performSelector:@selector(unimplementedMethod)]; // 崩溃：unrecognized selector sent to instance
}
@end
@interface MYCrashTest()

@end

@implementation MYCrashTest
//报告结构: (
//    debug,
//    system,
//    report,
//    crash,
//    "binary_images",
//    process,
//    user
//)
- (void)testArrayOutOfBoundsCrash {
    NSArray *array = @[@1, @2, @3];
    // 访问超出数组长度的索引
    NSLog(@"---%@", array[3]); // 崩溃：index 3 beyond bounds for empty array
}

//报告结构: (
//    debug,
//    system,
//    report,
//    crash,
//    "binary_images",
//    process,
//    user
//)
- (void)testUnimplementedMethodCrash {
    NSObject *obj = [[NSObject alloc] init];
    // 调用NSObject未实现的方法
    [obj performSelector:@selector(unimplementedMethod)]; // 崩溃：unrecognized selector sent to instance
}
@end
